#!/bin/sh
gnutls-cli --insecure --port=995 $1 <&0 |
	while read line;
	do
		if echo "$line" | egrep --silent --no-messages 'Simple Client Mode'; then
			read line
			exec cat -
		fi
	done
